package com.tfswue.cxy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.awt.print.Book;

@FeignClient(name = "book-service")
public interface BookFeignClient {
    @GetMapping("/book/{id}")
    Book getBookById(@PathVariable("id") Long id);
}